package com.efast.dmom.mgmt.controller.mes;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.efast.cafe.framework.bean.ResultBean;
import com.efast.dmom.mgmt.dao.mes.BsnRuleDao;
import com.efast.dmom.mgmt.service.mes.BsnRuleService;

@Controller
@RequestMapping("/BsnRule")
public class BsnRuleController {
	@Autowired
	private BsnRuleService bsnRuleService;
	@Autowired
	private BsnRuleDao bsnRuleDao;
	@RequestMapping(value="/getBsnInfo")
	public @ResponseBody ResultBean getLineCapacity() {
		ResultBean result = new ResultBean(true,"'");

			String vinNo=bsnRuleService.returnBsnNum();
			if(!"".equals(vinNo) && vinNo!=null) {
				result.setObject(vinNo);	
				result.setSuccess(true);
				result.setMessage("获取Bsn号成功！");
			}	
			else {
			result.setSuccess(false);
			result.setMessage("没有获取到数据");
		}
		return result;
	}

}
